#ifndef STATE_DEMO
#define STATE_DEMO

#include <SDL.h>
#include <SDL_TTF.h>
#include <SDL_IMAGE.h>
#include <time.h>
#include <cstdio>
#include <windows.h>

#include "../Delta-Ray/state.h"
#include "../Delta-Ray/state_men.h"
#include "../Delta-Ray/log.h"
#include "../Delta-Ray/Vector2.h"
#include "../Delta-Ray/console.h"
#include "../Delta-Ray/input.h"

using namespace std;
using namespace _Warp;

class StateDemo : public State{
public:
	StateDemo();
	virtual ~StateDemo();
	void Init(StateMenager *a_stmen,SDL_Surface *a_S_SCREEN);
	void Tick();
	void TickFast();
	void Draw();
	void Destroy();
private:
    Log *Loger;
    Console *Con;
    Input *KeyIn;
    StateMenager *stmen;
    int cur_time, fps_timer;
    float fps, fps2;
    string tmp_fps;
    bool console_show, console_key;
    //SDL
    SDL_Surface *S_SCREEN;
    SDL_Rect Re_blank;
    TTF_Font *Font1,*Font2;
    SDL_Color Color_Dtext_bg, Color_Dtext;
    SDL_Surface *S_Dtext1,*S_Dtext2;
    SDL_Rect Re_Dtext1,Re_Dtext2;
    SDL_Surface *S_Cbg;
    SDL_Surface *S_Icon;

};

#endif
